<taglib name='Html' />
<div class="Item hr">
    <div class="fr"><a href="{:U('index')}" class="btn">单页管理</a></div>
    <div class="current">添加单页</div>
</div>
<form>
	<input type="hidden" name="page[id]" value="{$page.id}" />
    <div class="Item hr">
        <div class="current">常规选项</div>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
        <present name="language">
        <tr>
            <th width="100"><span class="red">所属语言：</span></th>
            <td>
            <html:select options="language" name="page[lang]" id="lang" selected="page[lang]" />
             </td>
        </tr>
        </present> 
        <tr>
            <th width="100">页面标题：</th>
            <td><input id="title" type="text" class="input" size="50" name="page[title]" value="{$page.title}" /> </td>
        </tr>
        <tr>
            <th width="100">页面标识：</th>
            <td><input id="nid" type="text" class="input" size="10" name="page[nid]" value="{$page.nid}" /> </td>
        </tr>
        <tr>
            <th width="100">页面模板：</th>
            <td><input id="template" type="text" class="input" size="30" value="{$page.template}" name="page[template]" /></td>
        </tr>
        <tr>
            <th width="100">关键字：</th>
            <td>
            <textarea class="jq_watermark" id="keywords" rows="1" cols="70" name="page[keywords]"  placeholder="多个关键字用半角逗号","隔开">{$page.keywords}</textarea> 
            </td>
        </tr>
        <tr>
            <th width="100">栏目描述：</th>
            <td><textarea class="jq_watermark" id="description" rows="5" cols="70" name="page[description]"  placeholder="栏目描述">{$page.description}</textarea> </td>
        </tr>
    </table>
    <div class="Item hr">
        <div class="current">页面内容</div>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
    	<tr><td>{:genEditor('page[body]', $page['body'], 120, 20, '1')}</td></tr>
    </table>
</form>
<div class="commonBtnArea" >
    <button class="btn submit">提交</button>
</div>

<include file="Page/javascript" />
<script type="text/javascript">
$(function(){
    submitForm("update");
});
</script>
